package com.nbsaas.boot.cms.rest.convert;

import com.nbsaas.boot.cms.data.entity.ArticleCategory;
import com.nbsaas.boot.cms.api.domain.response.ArticleCategoryResponse;

import com.nbsaas.boot.utils.BeanDataUtils;
import com.nbsaas.boot.rest.api.Converter;
/**
* 文章分类-实体对象转化成响应对象
*/

public class ArticleCategoryResponseConvert  implements Converter<ArticleCategoryResponse,ArticleCategory> {

    @Override
    public ArticleCategoryResponse convert(ArticleCategory source) {
        ArticleCategoryResponse  result = new  ArticleCategoryResponse();
        BeanDataUtils.copyProperties(source, result);
        return result;
    }

}

